package thread;

/**
 * @Author Justin Parker
 * @Date 2024/7/20 0020 9:04
 * @Version 1.0
 */
public class DaemonThreadDemo01 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
           while (true) {
               System.out.println(System.currentTimeMillis());
           }
        });
        t.setDaemon(true);
        t.start();
//        while (true){}
    }
}
